package com.pension.service;


import com.pension.entity.User;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Service
public interface UserService {
    //保存用户
    boolean save(User user);
    //登录
    User login(String username,String password);

    User findUserByIdWithParam(String id);

    void updateUser(User user);

    //权限管理
    Integer authoritymanagement(@RequestParam("username")String username, @RequestParam("password")String password);

    //查看所有用户
    List<User> findAllUser();

    //改变权限
    void authority(int id);

    //改变权限-vip
    void authority2(int id);

    //删除用户
    void deleteByid(int id);

    String aa(String a);
}
